<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link href="/css/layui.css" rel="stylesheet">
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="id" name="id" th:value="${category.id}" type="hidden">
                        <input id="topicImgUrl" name="topicImgUrl" th:value="${category.topicImgUrl}" type="hidden">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">分类名称：</label>
                            <div class="col-sm-8">
                                <input id="name" name="name" th:value="${category.name}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">图片：</label>
                            <div class="col-sm-8">
                                <input type="hidden" name="topicImgId" id="topicImgId">
                                <div class="attachment">
                                    <div class="file-box">
                                        <div class="photos" id="topicImgDiv"></div>
                                        <div class="file-name">
                                            <button type="button" class="btn btn-warning btn-xs copy"
                                                    id="topicImgUpload">
                                                <i class="layui-icon"></i>上传图片
                                            </button>
                                            <text style="color: red;font-weight: bold;">建议图片尺寸 520 * 200</text>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">描述：</label>
                            <div class="col-sm-8">
                                <input id="description" name="description" th:value="${category.description}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script src="/js/layui.js"></script>
<script type="text/javascript" src="/js/appjs/category/edit.js">
</script>
</body>
</html>
